﻿@{
    ViewBag.Title = "ShowList";
    Layout = "~/Views/Shared/_Mobile.cshtml";
}

 <h1>@ViewBag.List.List_Name</h1>

        @if (ViewBag.List.productList != null)
        {
                <table>
    <tr><th>Nom</th><th>Magasin</th><th></th><th></th></tr>
    @foreach (Alma.Models.ProductDetailsModel se in ViewBag.List.productList)
    {
        <tr>
        @*<td><img alt="Product Illustration" src="@Url.Content(se.ImgUrl)" /></td>*@
        <td>@se.Name</td>
        @*<td>@Html.ActionLink("-", "Less", "List", new { idProduct = se.ID, idList = ViewBag.List.ID }, null)@se.Quantity@Html.ActionLink("+", "More", "List", new { idProduct = se.ID, idList = ViewBag.List.ID }, null)</td>*@
        <td>@Html.ActionLink(se.Name_Shop, "ShowShop", "Mobile", new { id = se.ID_Shop }, null)</td>
        @*<td>@Html.ActionLink("Retirer", "DelProduct", "List", new { idProduct = se.ID, idList = ViewBag.List.ID }, null)</td>*@
        </tr>
    }
    </table>
        }
        else
        {
            <p>Aucun produit dans la liste.</p>
        }

        <p>@Html.ActionLink("Retourner à la liste de courses", "Profile")</p>
